<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>

<body>
    <script>
        var baseURL = "http://192.168.4.18:3000/"

        function http({
            url,
            method = "get",
            params = {}
        }) {
            return axios({
                url,
                baseURL,
                method,
                params
            })
        }
        http({
            url: "/album?id=96964667"
        }).then(res => {
            console.log(res)
        })
        http({
            url: "/album",
            params: {
                id: "96964667"
            }
        }).then(res => {
            console.log(res)
        })
    </script>
</body>

</html>